package com.twu.biblioteca;

public class Book {
    private String name;
    private boolean reserved;

    Book(String bookName) {
        this.name = bookName;
        this.reserved = false;
    }

    Book(String bookName, boolean isReserved) {
        this.name = bookName;
        this.reserved = isReserved;
    }

    public String toString() {
        return this.name;
    }

    public boolean isReserved() {
        return reserved;
    }

    public void reserve() {
        reserved = true;
    }
}
